package cn.xinfei.xdecision.data.core.vo.standard;

import cn.xinfei.xdecision.common.model.datax.enums.ExecutorType;
import cn.xinfei.xdecision.common.model.datax.enums.VariableStrategyType;
import cn.xinfei.xdecision.data.model.IVariableRequest;
import cn.xinfei.xdecision.data.core.vo.VarInterfaceInfoVO;
import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import org.apache.commons.compress.utils.Sets;

import java.util.Collections;
import java.util.List;
import java.util.Set;


@Data
public class HttpStandardVarRequest implements IVariableRequest {

    private String requestId;
    private JSONObject inputParams;
    private VarInterfaceInfoVO varInterfaceInfoVO;
    private ExecutorType execorType;

    @Override
    public List<VariableStrategyType> requestStrategys() {
        return Collections.singletonList(VariableStrategyType.HTTP_STAND);
    }

    @Override
    public String requestId() {
        return requestId;
    }

    @Override
    public Set<String> varCodes() {
        return Sets.newHashSet();
    }

    @Override
    public JSONObject inputParams() {
        return inputParams;
    }
}
